//
//  NewWSPayTypeCell.m
//  FD
//
//  Created by xiaofang wang on 2018/11/22.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "NewWSPayTypeCell.h"
#import "NewPayTypeModel.h"
@interface NewWSPayTypeCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLb; //支付方式
@property (weak, nonatomic) IBOutlet UIImageView *iconIv; //选中取消选中图标
@end

@implementation NewWSPayTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}



- (void)setModel:(NewPayTypeModel *)model {
    _model = model;
    self.nameLb.text = model.name;
    if (model.isSelected) {
        self.iconIv.image = [UIImage imageNamed:@"selected"];
    }else {
        self.iconIv.image = [UIImage imageNamed:@"unselected"]; //选中
    }
}

@end
